package testDemo.Test1.Student;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Demo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Student> list = new ArrayList<Student>();
        while(true){
            Student s = new Student(sc.next(),Integer.parseInt(sc.next()));
            boolean b=list.contains(s);
            if(list.contains(s)){
                System.out.println("已存在");
            }else{
                list.add(s);
                System.out.println(list);
            }
        }
    }
}
